package org.ccc;

public class T2 {
    public static void main(String[] args) {
        String s1 = "ok";
        String s2 = "oo";
        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));

        String a = new String("java");
        String b = new String("java1");
        System.out.println(a==b);
        System.out.println(a.equals(b));
    }
}
